<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateRecord extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('Record', function($table)
		{
			$table->string('name', 50);
			$table->integer('value');
		});

		DB::table('Record')->insert(
			array('name' => 'numOfuse', 'value' => 0)
			);
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		

		Schema::dropIfExists('Record');
	}

}
